package com.example.hospitalManage.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Description:
 * Param:
 * return:
 * Author: 彭雨胜
 * Data: 2022/12/29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "医院排班")
@TableName(value = "schedule")
public class Schedule extends BaseEntity {

    @ApiModelProperty(value = "科室编号")
    @TableField("depcode")
    private String depcode;

    @ApiModelProperty(value = "医院编号")
    @TableField("hoscode")
    private String hoscode;

    @ApiModelProperty(value = "职称")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "医生姓名")
    @TableField("docname")
    private String docname;

    @ApiModelProperty(value = "技能简介")
    @TableField("skill")
    private String skill;

    @ApiModelProperty(value = "排班日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("work_date")
    private Date workDate;

    @ApiModelProperty(value = "排班时间（0：上午，1：下午）")
    @TableField("work_time")
    private Integer workTime;

    @ApiModelProperty(value = "可预约次数")
    @TableField("reserved_number")
    private Integer reservedNumber;

    @ApiModelProperty(value = "剩余预约数")
    @TableField("available_number")
    private Integer availableNumber;

    @ApiModelProperty(value = "挂号费")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "排班状态（-1：停诊 0：停约 1：可约）")
    @TableField("status")
    private Integer status;

}
